Skip to content

Update profileBuilder to delete profile contents before generating.#1095

Merged
marstr merged 6 commits intoAzure:devfrom
marstr:clearOutput
Feb 16, 2018
Merged

Update profileBuilder to delete profile contents before generating.#1095
marstr merged 6 commits intoAzure:devfrom
marstr:clearOutput

Conversation

@marstr
Copy link
Copy Markdown
Member

@marstr marstr commented Feb 15, 2018

Fixes #1066

Long-term, I'd like to separate out the logic for latest into a separate tool, as I mention in the thread associated with #1066. However, for now, I'd like to just get out what we need to in order to publish profiles correctly most expediently.

This allows a cross-platform option to safely delete profile packages
before generating. This makes it easier to ensure that if a package is
deleted from a list definition of a profile, it gets deleted on the file
system as well.
@marstr marstr self-assigned this Feb 15, 2018
@ghost ghost added the review label Feb 15, 2018
@marstr
Copy link
Copy Markdown
Member Author

marstr commented Feb 15, 2018

Once this is merged into dev, I'll be submitting the changes into master and creating a release.

Comment thread swagger_to_sdk_config.json Outdated
],
"autorest_options": {
"use": "@microsoft.azure/autorest.go@preview",
"use": "@microsoft.azure/autorest.go@2.1.86",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a npm syntax to say "latest of the 2.x series" if you want.
https://docs.npmjs.com/misc/semver#x-ranges-12x-1x-12-

Because Autorest gives that to npm directly, and doesn't look at what you actually write.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated! Thanks for the tip

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For posterity, I tested the syntax to use with this command:

npm show "@microsoft.azure/autorest.go@~2" version

@marstr marstr merged commit 1e334c4 into Azure:dev Feb 16, 2018
@ghost ghost removed the review label Feb 16, 2018
@marstr marstr deleted the clearOutput branch February 16, 2018 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants